package com.sinothk.gpserver.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sinothk.gpserver.modules.comm.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 群(俱乐部)
 * </p>
 *
 * @author Liang Y.t.
 * @since 2021-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("biz_group")
@ApiModel(value = "GroupEntity对象", description = "群(俱乐部)")
public class GroupEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "群号")
    private String groupNo;

    @ApiModelProperty(value = "群名称")
    private String groupName;

    @ApiModelProperty(value = "管理员")
    private String managers;

    @ApiModelProperty(value = "合伙人")
    private String partners;

    @ApiModelProperty(value = "头像")
    private String groupAvatar;

    @ApiModelProperty(value = "地区")
    private String address;

    @ApiModelProperty(value = "俱乐部联系渠道")
    private String linkType;

    @ApiModelProperty(value = "俱乐部联系方式")
    private String linkValue;

    @ApiModelProperty(value = "俱乐部标签")
    private String groupFlags;

    @ApiModelProperty(value = "俱乐部简介")
    private String groupDesc;

    @ApiModelProperty(value = "当前成员数")
    private Integer groupMemberSize;

    @ApiModelProperty(value = "成员最多数")
    private Integer groupMemberMax;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除：0未删除;1删除;")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "当前用户在此群的角色")
    @TableField(exist = false)
    private String groupRole;

    @ApiModelProperty(value = "当前用户在此群的积分")
    @TableField(exist = false)
    private Float memberCoins;

}
